﻿using System;
using System.ServiceModel;

namespace OCXS.OCXSServiceLibrary.OPCXMLDA10 {

    [MessageContract(
        WrapperName = "WriteResponse", 
        WrapperNamespace = "http://opcfoundation.org/webservices/XMLDA/1.0/", 
        IsWrapped = true)]
    public class WriteResponse {

        [MessageBodyMember(Name = "WriteResult", Order = 0)]
        public OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyBase WriteResult;

        [MessageBodyMember(Name = "RItemList", Order = 1)]
        public OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyItemList RItemList;

        [MessageBodyMember(Name = "Errors", Order = 2)]
        public OPCError[] Errors;

        public WriteResponse() {
        }

        public WriteResponse(OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyBase WriteResult, OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyItemList RItemList, OPCError[] Errors) {
            this.WriteResult = WriteResult;
            this.RItemList = RItemList;
            this.Errors = Errors;
        }
    }
}
